﻿using System;
using System.Linq;
using DZLib.ExtendFramework.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DZLib.ExtendFramework.UnitTests.Generic.ExtendIEnumerableTest
{
    [TestClass]
    public class FullCopyTest
    {
        [TestMethod]
        public void TestFullCopy()
        {
            var copyTestCase = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
            var copyTestTarget = copyTestCase.FullCopy().ToArray();
            Assert.IsTrue(copyTestCase.SequenceEqual(copyTestTarget));
        }

        [TestMethod]
        public void TestFullCopyLowBound()
        {
            var copyTestCase = new int[] { };
            var copyTestTarget = copyTestCase.FullCopy().ToArray();
            Assert.IsTrue(copyTestCase.SequenceEqual(copyTestTarget));
        }
    }
}
